﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace RssBar
{
    /// <summary>
    /// Interaction logic for ucOptionsApplication.xaml
    /// </summary>
    public partial class ucOptionsApplication : UserControl, IOptionsContentPage
    {
        public ucOptionsApplication()
        {
            InitializeComponent();

            cbTopMost.IsChecked = Configuration.TopMost;
            cbShowInTaskbar.IsChecked = Configuration.ShowInTaskbar;
            cbShowInTray.IsChecked = Configuration.ShowInTray;
        }

        public string TitleText
        {
            get { return "Interfejs"; }
        }


        public bool Apply()
        {
            Configuration.TopMost = cbTopMost.IsChecked.Value;
            Configuration.ShowInTaskbar = cbShowInTaskbar.IsChecked.Value;
            Configuration.ShowInTray = cbShowInTray.IsChecked.Value;

            return true;
        }
    }
}
